Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initial controller (no resource managers) #1

Merged
merged 1 commit into from
May 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Create Release

on:
push:
tags:
- "v*.*.*"

permissions:
contents: write # For creating releases

jobs:
call-create-release:
uses: aws-controllers-k8s/.github/.github/workflows/reusable-create-release.yaml@main
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.DS_Store
*.swp
*~
.idea
bin
build
.env
READ_BEFORE_COMMIT.md
Empty file added ATTRIBUTION.md
Empty file.
74 changes: 50 additions & 24 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,59 +1,85 @@
# Contributing Guidelines

Thank you for your interest in contributing to our project. Whether it's a bug report, new feature, correction, or additional
documentation, we greatly value feedback and contributions from our community.

Please read through this document before submitting any issues or pull requests to ensure we have all the necessary
information to effectively respond to your bug report or contribution.
Thank you for your interest in contributing to our project. Whether it's a bug
report, new feature, correction, or additional documentation, we greatly value
feedback and contributions from our community.

Please read through this document before submitting any issues or pull requests
to ensure we have all the necessary information to effectively respond to your
bug report or contribution.

## Reporting Bugs/Feature Requests

We welcome you to use the GitHub issue tracker to report bugs or suggest features.
We welcome you to use the GitHub issue tracker to report bugs or suggest
features.

When filing an issue, please check existing open, or recently closed, issues to make sure somebody else hasn't already
reported the issue. Please try to include as much information as you can. Details like these are incredibly useful:
When filing an issue, please check existing open, or recently closed, issues to
make sure somebody else hasn't already reported the issue. Please try to
include as much information as you can. Details like these are incredibly
useful:

* A reproducible test case or series of steps
* The version of our code being used
* Any modifications you've made relevant to the bug
* Anything unusual about your environment or deployment


## Contributing via Pull Requests
Contributions via pull requests are much appreciated. Before sending us a pull request, please ensure that:

Contributions via pull requests are much appreciated. Before sending us a pull
request, please ensure that:

1. You are working against the latest source on the *main* branch.
2. You check existing open, and recently merged, pull requests to make sure someone else hasn't addressed the problem already.
3. You open an issue to discuss any significant work - we would hate for your time to be wasted.
2. You check existing open, and recently merged, pull requests to make sure
someone else hasn't addressed the problem already.
3. You open an issue to discuss any significant work - we would hate for your
time to be wasted.

To send us a pull request, please:

1. Fork the repository.
2. Modify the source; please focus on the specific change you are contributing. If you also reformat all the code, it will be hard for us to focus on your change.
2. Modify the source; please focus on the specific change you are contributing.
If you also reformat all the code, it will be hard for us to focus on your
change.
3. Ensure local tests pass.
4. Commit to your fork using clear commit messages.
5. Send us a pull request, answering any default questions in the pull request interface.
6. Pay attention to any automated CI failures reported in the pull request, and stay involved in the conversation.
5. Send us a pull request, answering any default questions in the pull request
interface.
6. Pay attention to any automated CI failures reported in the pull request, and
stay involved in the conversation.

GitHub provides additional document on [forking a repository](https://help.github.com/articles/fork-a-repo/) and
[creating a pull request](https://help.github.com/articles/creating-a-pull-request/).
GitHub provides additional document on [forking a repository][fork] and
[creating a pull request][pr].

[fork]: https://help.github.com/articles/fork-a-repo/
[pr]: https://help.github.com/articles/creating-a-pull-request/

## Finding contributions to work on
Looking at the existing issues is a great way to find something to contribute on. As our projects, by default, use the default GitHub issue labels (enhancement/bug/duplicate/help wanted/invalid/question/wontfix), looking at any 'help wanted' issues is a great place to start.

Looking at the existing issues is a great way to find something to contribute
on. As our projects, by default, use the default GitHub issue labels
(enhancement/bug/duplicate/help wanted/invalid/question/wontfix), looking at
any 'help wanted' issues is a great place to start.

## Developer documentation

[See the documentation][dev-docs] for detailed development information.

[dev-docs]: https://aws-controllers-k8s.github.io/community/docs/contributor-docs/overview/

## Code of Conduct
This project has adopted the [Amazon Open Source Code of Conduct](https://aws.github.io/code-of-conduct).
For more information see the [Code of Conduct FAQ](https://aws.github.io/code-of-conduct-faq) or contact
opensource-codeofconduct@amazon.com with any additional questions or comments.

We adhere to the [Amazon Open Source Code of Conduct][coc].

[coc]: https://aws.github.io/code-of-conduct

## Security issue notifications
If you discover a potential security issue in this project we ask that you notify AWS/Amazon Security via our [vulnerability reporting page](http://aws.amazon.com/security/vulnerability-reporting/). Please do **not** create a public github issue.

If you discover a potential security issue in this project we ask that you
notify AWS/Amazon Security via our [vulnerability reporting page][vuln]. Please
do **not** create a public Github issue.

[vuln]: http://aws.amazon.com/security/vulnerability-reporting/

## Licensing
## License

See the [LICENSE](LICENSE) file for our project's licensing. We will ask you to confirm the licensing of your contribution.
This project is [licensed][./LICENSE] under the Apache-2.0 License.
36 changes: 36 additions & 0 deletions GOVERNANCE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Project governance

This document lays out the guidelines under which the AWS Controllers for Kubernetes (ACK) project will be governed.
The goal is to make sure that the roles and responsibilities are well defined and clarify on how decisions are made.

## Roles

In the context of ACK, we consider the following roles:

* __Users__ ... everyone using ACK, typically willing to provide feedback on ACK by proposing features and/or filing issues.
* __Contributors__ ... everyone contributing code, documentation, examples, testing infra, and participating in feature proposals as well as design discussions. Code contributions will require a Developer Certificate of Origin (DCO).
* __Maintainers__ ... are responsible for engaging with and assisting contributors to iterate on the contributions until it reaches acceptable quality. Maintainers can decide whether the contributions can be accepted into the project or rejected. Any active contributor meeting the project quality can be made a Maintainer by the Advisory Board.
* __Advisory Board__ ... is responsible for defining the guidelines and processes that the project operates under.

The initial members of the Advisory Board are `@jaypipes` and `@mhausenblas`.


## Communication

The primary mechanism for communication will be via the `#provider-aws` channel on the Kubernetes Slack community.
All features and bug fixes will be tracked as issues in GitHub. All decisions will be documented in GitHub issues.

In the future, we may consider using a public mailing list, which can be better archived.

## Roadmap Planning

Maintainers will share roadmap and release versions as milestones in GitHub.

## Release Management

The Advisory Board will propose a release management proposal via a GitHub issue and resolve it there.

## Other relevant governance resources

* The ACK [Contributing Guidelines](CONTRIBUTING.md)
* Our [Code of Conduct](CODE_OF_CONDUCT.md)
23 changes: 23 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
SHELL := /bin/bash # Use bash syntax

# Set up variables
GO111MODULE=on

# Build ldflags
VERSION ?= "v0.0.0"
GITCOMMIT=$(shell git rev-parse HEAD)
BUILDDATE=$(shell date -u +'%Y-%m-%dT%H:%M:%SZ')
GO_LDFLAGS=-ldflags "-X main.version=$(VERSION) \
-X main.buildHash=$(GITCOMMIT) \
-X main.buildDate=$(BUILDDATE)"

.PHONY: all test

all: test

test: ## Run code tests
go test -v ./...

help: ## Show this help.
@grep -F -h "##" $(MAKEFILE_LIST) | grep -F -v grep | sed -e 's/\\$$//' \
| awk -F'[:#]' '{print $$1 = sprintf("%-30s", $$1), $$4}'
2 changes: 1 addition & 1 deletion NOTICE
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
5 changes: 5 additions & 0 deletions OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# See the OWNERS docs at https://go.k8s.io/owners

approvers:
- core-ack-team
- service-team
9 changes: 9 additions & 0 deletions OWNERS_ALIASES
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# See the OWNERS docs at https://go.k8s.io/owners#owners_aliases

aliases:
core-ack-team:
- a-hilaly
- RedbackThomson
- jljaco
# TODO: Add your team members' GitHub aliases to the team alias
service-team: []
27 changes: 18 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,26 @@
## My Project
# ACK service controller for Amazon CloudWatch Logs

TODO: Fill this README out!
This repository contains source code for the AWS Controllers for Kubernetes
(ACK) service controller for .

Be sure to:
Please [log issues][ack-issues] and feedback on the main AWS Controllers for
Kubernetes Github project.

* Change the title in this README
* Edit your repository description on GitHub
[ack-issues]: https://github.com/aws/aws-controllers-k8s/issues

## Security
## Contributing

See [CONTRIBUTING](CONTRIBUTING.md#security-issue-notifications) for more information.
We welcome community contributions and pull requests.

## License
See our [contribution guide](/CONTRIBUTING.md) for more information on how to
report issues, set up a development environment, and submit code.

We adhere to the [Amazon Open Source Code of Conduct][coc].

You can also learn more about our [Governance](/GOVERNANCE.md) structure.

This project is licensed under the Apache-2.0 License.
[coc]: https://aws.github.io/code-of-conduct

## License

This project is [licensed](/LICENSE) under the Apache-2.0 License.
3 changes: 3 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Security issue notifications

If you discover a potential security issue in this project we ask that you notify AWS/Amazon Security via our [vulnerability reporting page](http://aws.amazon.com/security/vulnerability-reporting/). Please do **not** create a public github issue.
13 changes: 13 additions & 0 deletions apis/v1alpha1/ack-generate-metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
ack_generate_info:
build_date: "2023-05-16T13:18:05Z"
build_hash: 9e2542cf2c0f92c014524c269474055cca758d70
go_version: go1.19.4
version: v0.26.0-3-g9e2542c
api_directory_checksum: 6751e4536ba166d4032da77bb1494e1069c89fd0
api_version: v1alpha1
aws_sdk_go_version: v1.44.263
generator_config_info:
file_checksum: 1a9f83edb39c41da8e5cc3cc6e3e294f33f2e302
original_file_name: generator.yaml
last_modification:
reason: API generation
4 changes: 4 additions & 0 deletions apis/v1alpha1/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// +k8s:deepcopy-gen=package
// Package v1alpha1 is the v1alpha1 version of the cloudwatch.services.k8s.aws API.
// +groupName=cloudwatch.services.k8s.aws
package v1alpha1
Loading