-
Notifications
You must be signed in to change notification settings - Fork 12
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
Repo restructure project - Merge helm-locker into local #74
Merged
Merged
Changes from 1 commit
Commits
Show all changes
48 commits
Select commit
Hold shift + click to select a range
e31a535
rename example chart to be more specific
mallardduck 8b98ad9
Add helm-locker docs
mallardduck b9a50bf
Reorg more files for project merge
mallardduck bc925c2
Add helm-locker charts
mallardduck 9be3772
Adjust CRD reference yaml generation
mallardduck 10028d7
Adjust default entry point to use explicit name
mallardduck 42eff8b
Rename docker file to be specific
mallardduck 78cec10
Rename docker file to better name
mallardduck 4403c88
Adjust scripts to allow targeting other entrypoints
mallardduck 7b9cc34
simplify docker bin target
mallardduck 6b4cdc3
move CRDs for repo merge
mallardduck bd7c5b9
bring helm-locker code into local repo
mallardduck 5396999
Adjust build target logic on build scripts
mallardduck d11e570
Move helm-project-operator to new cmd
mallardduck 03f32b4
Add helm-locker local CLI
mallardduck 43bad66
Reorg GHA ci files
mallardduck e8e9f46
Add helm-locker GHA into local repo
mallardduck f310e1c
Add go generate step to linter
mallardduck e89bd93
Add make build chart to lint job
mallardduck a8cc125
switch from ioutil to io
mallardduck b99ed1f
Fix linting issues
mallardduck f660e6d
Adjust ignore/keep for git
mallardduck dace9d8
Adjust GHA job names for package delineation
mallardduck 5b7dcf0
update go deps files
mallardduck 0c929cc
correct helm-ci target
mallardduck 9086dbd
correct build scripts
mallardduck e56e833
correct syntax error in GHA workflow
mallardduck b4531f0
rename step name to be more accurate
mallardduck 39dfd50
Adjust how tests are done to only test target command
mallardduck 3a885f3
update target and script path
mallardduck b9b2527
Add missing cluster script
mallardduck a03241f
Bring over tests folder from helm-locker
mallardduck d7a4d99
Adjust more paths for repo re-org
mallardduck ad90f02
tweak publish workflows to work on specific tags for now...
mallardduck 582ff22
Adjust style for easier workflow reading
mallardduck d0616ac
Correct e2e job name
mallardduck 56cf70d
correct last reference to old name
mallardduck 92721ba
fix scirpt job name
mallardduck 3abe679
correct path for delete script
mallardduck 1140ae4
remove duplicate crds file
mallardduck 464f1fd
Merge 2 publish workflows into 1
mallardduck 6d3ae41
Correct job name
mallardduck a24395e
Update readme docs
mallardduck 43c4e68
Only trigger hl-e2e on push to paths related to helm-locker
mallardduck 6cc146b
Test better image tags
mallardduck e69ff8e
Adjust rancher version annotations
mallardduck 8f2a52b
update chart maintainer
mallardduck ec90559
Adjust both charts to use GHCR for images
mallardduck File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: helmreleases.helm.cattle.io | ||
spec: | ||
group: helm.cattle.io | ||
names: | ||
kind: HelmRelease | ||
plural: helmreleases | ||
singular: helmrelease | ||
preserveUnknownFields: false | ||
scope: Namespaced | ||
versions: | ||
- additionalPrinterColumns: | ||
- jsonPath: .spec.release.name | ||
name: Release Name | ||
type: string | ||
- jsonPath: .spec.release.namespace | ||
name: Release Namespace | ||
type: string | ||
- jsonPath: .status.version | ||
name: Version | ||
type: string | ||
- jsonPath: .status.state | ||
name: State | ||
type: string | ||
name: v1alpha1 | ||
schema: | ||
openAPIV3Schema: | ||
properties: | ||
spec: | ||
properties: | ||
release: | ||
properties: | ||
name: | ||
nullable: true | ||
type: string | ||
namespace: | ||
nullable: true | ||
type: string | ||
type: object | ||
type: object | ||
status: | ||
properties: | ||
conditions: | ||
items: | ||
properties: | ||
lastTransitionTime: | ||
nullable: true | ||
type: string | ||
lastUpdateTime: | ||
nullable: true | ||
type: string | ||
message: | ||
nullable: true | ||
type: string | ||
reason: | ||
nullable: true | ||
type: string | ||
status: | ||
nullable: true | ||
type: string | ||
type: | ||
nullable: true | ||
type: string | ||
type: object | ||
nullable: true | ||
type: array | ||
description: | ||
nullable: true | ||
type: string | ||
notes: | ||
nullable: true | ||
type: string | ||
state: | ||
nullable: true | ||
type: string | ||
version: | ||
type: integer | ||
type: object | ||
type: object | ||
served: true | ||
storage: true | ||
subresources: | ||
status: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: helmreleases.helm.cattle.io | ||
spec: | ||
group: helm.cattle.io | ||
names: | ||
kind: HelmRelease | ||
plural: helmreleases | ||
singular: helmrelease | ||
preserveUnknownFields: false | ||
scope: Namespaced | ||
versions: | ||
- additionalPrinterColumns: | ||
- jsonPath: .spec.release.name | ||
name: Release Name | ||
type: string | ||
- jsonPath: .spec.release.namespace | ||
name: Release Namespace | ||
type: string | ||
- jsonPath: .status.version | ||
name: Version | ||
type: string | ||
- jsonPath: .status.state | ||
name: State | ||
type: string | ||
name: v1alpha1 | ||
schema: | ||
openAPIV3Schema: | ||
properties: | ||
spec: | ||
properties: | ||
release: | ||
properties: | ||
name: | ||
nullable: true | ||
type: string | ||
namespace: | ||
nullable: true | ||
type: string | ||
type: object | ||
type: object | ||
status: | ||
properties: | ||
conditions: | ||
items: | ||
properties: | ||
lastTransitionTime: | ||
nullable: true | ||
type: string | ||
lastUpdateTime: | ||
nullable: true | ||
type: string | ||
message: | ||
nullable: true | ||
type: string | ||
reason: | ||
nullable: true | ||
type: string | ||
status: | ||
nullable: true | ||
type: string | ||
type: | ||
nullable: true | ||
type: string | ||
type: object | ||
nullable: true | ||
type: array | ||
description: | ||
nullable: true | ||
type: string | ||
notes: | ||
nullable: true | ||
type: string | ||
state: | ||
nullable: true | ||
type: string | ||
version: | ||
type: integer | ||
type: object | ||
type: object | ||
served: true | ||
storage: true | ||
subresources: | ||
status: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
package v1alpha1 | ||
|
||
import ( | ||
"github.com/rancher/wrangler/pkg/genericcondition" | ||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||
) | ||
|
||
const ( | ||
// Helm Release Statuses | ||
|
||
// SecretNotFoundState is the state when a Helm release secret has not been found for this HelmRelease | ||
SecretNotFoundState = "SecretNotFound" | ||
|
||
// UnknownState is the state when the Helm release secret reports that it does not know the state of the underlying Helm release | ||
UnknownState = "Unknown" | ||
|
||
// DeployedState is the state where the underlying Helm release has been successfully deployed, indicating Helm Locker should lock the release | ||
DeployedState = "Deployed" | ||
|
||
// UninstalledState is the state when the underlying Helm release is uninstalled but the Helm release secret has not been deleted | ||
UninstalledState = "Uninstalled" | ||
|
||
// ErrorState is a state where Helm Locker has encountered an unexpected bug on trying to parse the underlying Helm release | ||
ErrorState = "Error" | ||
|
||
// FailedState is the state when the underlying Helm release has failed its last Helm operation | ||
FailedState = "Failed" | ||
|
||
// TransitioningState is the transitionary state when a Helm operation is being performed on the release (install, upgrade, uninstall) | ||
TransitioningState = "Transitioning" | ||
) | ||
|
||
// +genclient | ||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||
|
||
type HelmRelease struct { | ||
metav1.TypeMeta `json:",inline"` | ||
metav1.ObjectMeta `json:"metadata,omitempty"` | ||
Spec HelmReleaseSpec `json:"spec"` | ||
Status HelmReleaseStatus `json:"status"` | ||
} | ||
|
||
type HelmReleaseSpec struct { | ||
Release ReleaseKey `json:"release,omitempty"` | ||
} | ||
|
||
type ReleaseKey struct { | ||
Name string `json:"name,omitempty"` | ||
Namespace string `json:"namespace,omitempty"` | ||
} | ||
|
||
type HelmReleaseStatus struct { | ||
State string `json:"state,omitempty"` | ||
Version int `json:"version,omitempty"` | ||
Description string `json:"description,omitempty"` | ||
Notes string `json:"notes,omitempty"` | ||
|
||
Conditions []genericcondition.GenericCondition `json:"conditions,omitempty"` | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Soon we'll want to either distribute the files under
pkg/helm-locker
, or bring the code out into two top levelhelm-locker
andhelm-project-operator
but in the interest of getting some forward motion, I'm OK with this as-isThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To make sure I understand the context - is this to address the concern about these as go pkgs? I.e. ensuring we properly migrate from: https://pkg.go.dev/github.com/rancher/helm-locker over to an equivalent?